package DynamicProxy;

import Annotation.Aspect;
import Annotation.ServiceB;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @Author shangchao
 * @Date 2020/9/25 21:18
 */
@Aspect(ServiceB.class)
public class ExceptionAspect {
    public static void exception(Object object, Method method, Object[] args, Throwable e){
        System.err.println("exception when calling: " + method.getName() + ", " + Arrays.toString(args));
    }
}
